<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>属性绑定指令</title>
    <!-- 引用vue.js库 -->
    <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
</head>
<body>
    <div id="app">
        <div :disabled="isDisabled">这是一个被禁用的div</div>
        <div :disabled="Disabled">这是一个没有被禁用的div</div>
        <img :src="url">
        <a :href="baiduurl">这是个链接</a>
    </div>
    <script>
        let vm = new Vue({
            // 根据id获取到容器div
            el:"#app",
            // data表示数据
            data:{
              isDisabled:true,
              Disabled:false,
              url:"http://www.baidu.com",
              baiduurl:"https://cn.vuejs.org/"
            }
        });
    </script>
    
</body>
</html>